package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.ArticleCommentService;
import com.it.park.dao.ArticleCommentMapper;
import com.it.park.model.ArticleComment;

@Service("articleCommentService")
public class ArticleCommentServiceImpl extends BaseServiceImpl<ArticleComment> implements ArticleCommentService {
	
	@Autowired
	private  ArticleCommentMapper  articleCommentMapper;

	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return articleCommentMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(ArticleComment record) {
		return articleCommentMapper.insertSelective(record)==1;
	}
	@Override
	public ArticleComment selectByPrimaryKey(Integer id) {
		return articleCommentMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(ArticleComment record) {
		return articleCommentMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(ArticleComment record) {
		return articleCommentMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public boolean insert(ArticleComment record) {
		return articleCommentMapper.insert(record)==1;
	}
	@Override
	public List<ArticleComment> selectAll() {
		return articleCommentMapper.selectAll();
	}
	@Override
	public List<ArticleComment> selectPagination(Map<String, Object> map) {
		return articleCommentMapper.selectPagination(map);
	}
	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return articleCommentMapper.selectTotal(map);
	}
	@Override
	public ArticleComment selectIsExist(ArticleComment record) {
		return articleCommentMapper.selectIsExist(record);
	}
	@Override
	public boolean updateByPrimaryKeyWithBLOBs(ArticleComment record) {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public List<ArticleComment> selectPagination(ArticleComment t) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer selectTotal(ArticleComment t) {
		// TODO Auto-generated method stub
		return null;
	}
	

}
